const tool = require("../tools/tool")
const system = require("../methods/system")

module.exports = {
    getServerTime: {
        exp: '获取服务器时间',
        method: 'get',
        async func() {
            return system.getServerTime()
        }
    },
    logFrontStatus: {
        exp: '输出前端状态',
        method: 'post',
        async func(data) {
            tool.cLog.frontStatus(data.currentUserName ? data.currentUserName : '未登录', data.currentUserId ? data.currentUserId : '', data.param.content)
        }
    }
}